/*
 * Project CHEN Rendering Engine : /testing.cpp
 * Created: 2021-03-10, Last modified:  2021-03-10
 * 
 * This is the default descriptor.
 * 
 * Copyright (C) 2021 Hineven (hineven@pku.edu.cn)
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#include <cstdio>
#include "core/heads.hpp"
#include "shape/sphere.hpp"
#include "core/interaction.hpp"
#include "core/geometry.hpp"

int main () {
    chen::Ray r({1, 1, 1}, {1, 1, 1}, Infinity);
    chen::Transform rotation_test = chen::shift({1, 1, 1})*chen::rotateX(M_PI/6);
    r = rotation_test(r);
    printf("dir:(%f %f %f), (%f %f %f)\n", r.o.x, r.o.y, r.o.z, r.d.x, r.d.y, r.d.z);
}